#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <editdialog.h>
#include <QDebug>
#include <QTableWidgetItem>
#include <QComboBox>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void TableWidgetAddCheckBox(QTableWidget *tableWidget, int x, int y, QString text, Qt::CheckState checkState);
    void ComboBoxSetItems(QComboBox *comboBox, QStringList *items);
    void TableWidgetAddComboBox(QTableWidget *tableWidget, int x, int y, QStringList items, int comboBoxIdx);
private slots:
    void on_pushButton_clicked();
    void editTable(QStringList items, int type);

    void on_tableWidget_cellClicked(int row, int column);

    void on_tableWidget_itemClicked(QTableWidgetItem *item);

    void comboxIndexChange(int index);

private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
